<template>
  <el-dialog :title="title" :visible.sync="visible" width="80%" :before-close="handleClose" :modal="false" >
    <div>
      <div v-html="secretText"></div>
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button @click="handleClose">取 消</el-button>
      <el-button type="primary" @click="handleClose">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
import { SECRET } from './constant';
export default {
  name: 'agreement',
  components: {},
  props: ['visible','type'],
  data() {
    return {
      secretText:SECRET,
      title:'',
    };
  },
  mounted() { 
    if(this.type==='secret'){
      this.title='隐私协议'
    }
  },
  methods: {
    handleClose(){
      this.$emit('close')
    }

  },
};
</script>
<style lang="scss" scoped>
.wrapper {}
</style>